package com.hxw.schema.factory;

/**
 * Created by Think on 2018/5/4.
 */
public class Client {

    public static void main(String[] args) {
        IFactory iFactory = new AddFactory();
        Operation operation = iFactory.createOperate();
        operation.setA(3);
        operation.setB(2);
        double result = operation.getResult();
        System.out.println("result = " + result);

    }
}
